package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2019-01-04
 */
@Data
@Accessors(chain = true)
@TableName("zdd_maker_case")
public class MakerCase extends Model<MakerCase> {

    private static final long serialVersionUID = 1L;

    /**
     * 案例id
     */
    @TableId(value = "caseid", type = IdType.AUTO)
    private Integer caseid;
    /**
     * 创客id
     */
    private Integer userid;
    /**
     * 案例名
     */
    private String casename;
    /**
     * 案例描述
     */
    private String casedesc;
    /**
     * 案例图片
     */
    private String caseimgs;
    private Date createtime;

    private String startDate;
    private String endDate;


    @Override
    protected Serializable pkVal() {
        return this.caseid;
    }

}
